package com.abc.genericextends;

public class EmplDao<X> {
	/*private Class<?> clazz;
	public EmplDao(Class<?> clazz){
		this.clazz=clazz.getClass();
	}
	*/
	public <T> T find(T t) {
		System.out.println(t);
		return t;
	}
	public void eee(Class<X> clazz) {
		System.out.println("eee方法"+clazz.getName());
	}
	
	@SuppressWarnings("unchecked")
	public X getUser(String id) {
		User user = new User(4,"牛魔王",333);
		return (X)user;
		
	}
}
